<template>
  <div class="home">
    <button @click="logout">退出登录</button>
    <h1>Welcome to halo Page</h1>
  </div>
  <myCom1 :url="url"></myCom1>
  
</template>

<script>
import myCom1 from '../components/myCom1.vue'
const w1img = require('@/assets/w1.jpg')
export default {
  name: 'HaloPage',
  components: {
    myCom1

  }, methods: {
    logout() {
      sessionStorage.setItem('showLogin', '1')
      this.$router.push('/LoginApp')
    }
  },
   data() {
    return {
      url: w1img,
    }
  }
}
</script>

<style scoped>
.home {
  padding: 20px;
}
</style>